import { Component } from '@angular/core';
import {IonicPage, NavController, NavParams, ViewController} from 'ionic-angular';


@IonicPage()
@Component({
  selector: 'page-device-room-choose',
  templateUrl: 'device-room-choose.html',
})
export class DeviceRoomChoosePage {



  room_all = [];

  constructor(public navCtrl: NavController, public navParams: NavParams,public viewCtrl: ViewController) {
  }

  ionViewDidLoad() {
    this.room_all = this.navParams.get('room');
    // console.log(this.navParams.get('room'));
    // console.log(this.room_all);
  }

  choose_room(n){
    // this.room_num = n;
    this.viewCtrl.dismiss(n);
  }

  close_roomchoose(){
    this.viewCtrl.dismiss();
  }

}
